﻿var app = angular.module('myApp', []);

app.controller('categoryCtrl', function ($scope) {
    $scope.names = [
        { name: '女装', href: 'list.html?cd=1&type=Cate', img: 'http://www.dpfile.com/sc/eleconfig/20160126194705meishi.png' },
        { name: '男装', href: 'list.html?cd=2&type=Cate', img: 'http://www.dpfile.com/sc/eleconfig/20160126202805dianying.png' },
        { name: '鞋包', href: 'list.html?cd=3&type=Cate', img: 'http://www.dpfile.com/sc/eleconfig/20160126202841xiuxianyule.png' },
        { name: '家居', href: 'list.html?cd=5&type=Cate', img: 'http://www.dpfile.com/sc/eleconfig/20160316143239meirong.png' },
        { name: '文体', href: 'list.html?cd=6&type=Cate', img: 'http://www.dpfile.com/sc/eleconfig/20160126203617jianshen.png' },
        { name: '电器', href: 'list.html?cd=7&type=Cate', img: 'http://www.dpfile.com/sc/eleconfig/20160126203440zhoubianyou.png' },
        { name: '配饰', href: 'list.html?cd=8&type=Cate', img: 'http://www.dpfile.com/sc/eleconfig/20160126203542ktv.png' },
        { name: '数码', href: 'list.html?cd=9&type=Cate', img: 'http://www.dpfile.com/sc/eleconfig/20160314121215icongouwu135.png' }
    ];
});

app.controller('category2Ctrl', function ($scope) {
    $scope.names = [
        { name: '美食', href: 'list.html?cd=10&type=Cate', img: 'http://www.dpfile.com/sc/eleconfig/20160126194705meishi.png' },
        { name: '美妆', href: 'list.html?cd=11&type=Cate', img: 'http://www.dpfile.com/sc/eleconfig/20160316143239meirong.png' },
        { name: '母婴', href: 'list.html?cd=12&type=Cate', img: 'http://www.dpfile.com/sc/eleconfig/20160126203905qinzi.png' },
        { name: '其他', href: 'list.html?cd=13&type=Cate', img: 'http://www.dpfile.com/sc/eleconfig/20160125182200more.png' }
        //{ name: '全部', href: 'list.html?cd=6&type=Cate', img: 'http://www.dpfile.com/sc/eleconfig/20160125182200more.png' }
    ];
});

app.controller('newShopCtrl', function ($scope) {
    $scope.names = [
        { name: '【超低价】冬季单人双人保暖加厚棉', money: '5.00', surplus: '19783', total: '20000', price: '44', reduce: '49', intr: '今日上新', comment: '超低价', img: 'http://acdn.taokezhushou.com/82d695810d2097e7639d3fda199f0597.jpg@1e_1c_0o_0l_287h_287w_100q.src' },
        { name: '正版hello kitty加厚卡通法莱绒四', money: '40.00', surplus: '2111', total: '4000', price: '138', reduce: '178', intr: '明智之选', comment: '超低价', img: 'http://acdn.taokezhushou.com/c62b82318c91ab34a90d377a152703b3.jpg@1e_1c_0o_0l_287h_287w_100q.src' },
        { name: '2016新款亲子装秋装毛衣套装潮秋季', money: '10.00', surplus: '5000', total: '5000', price: '29', reduce: '39', intr: '推荐商品', comment: '超低价', img: 'http://acdn.taokezhushou.com/items/91eede3f587d9577aed9f1ab1637543b.jpg@1e_1c_0o_0l_287h_287w_100q.src' },
        { name: '北极绒儿童秋衣套装纯棉宝宝秋冬装', money: '10.00', surplus: '888', total: '5000', price: '198', reduce: '208', intr: '推荐商品', comment: '超低价', img: 'http://acdn.taokezhushou.com/items/6611bca11df987bc24d3771d45da7f3a.jpg@1e_1c_0o_0l_287h_287w_100q.src' }
    ];
});

